import request from '@/utils/request'

/**
 * 获取宠物美容信息
 * @returns
 */
export const petCareList = () => {
  return request('/api/pet/care', 'get')
}

/**
 * 修改宠物美容列表
 * @param {*} param0
 * @returns
 */
export const updatePetCare = ({ cid, cname, price, member_price }) => {
  return request('/api/update/pet/care', 'post', { cid, cname, price, member_price })
}

/**
 * 删除宠物美容信息
 * @returns
 */
export const delPetCare = ({ cid }) => {
  return request('api/del/pet/care', 'delete', { nid })
}

export const insertPetCare = ({ cname, price, member_price }) => {
  return request('api/insert/pet/care', 'post', { cname, price, member_price })
}
